
#ifndef  HELP_H_H
#define  HELP_H_H

#include <string>  
#include <iostream>  
#include "talk/base/thread.h"  

class HelpData : public talk_base::MessageData
{
public:
	std::string info_;
};

class Police : public talk_base::MessageHandler
{
public:
	enum {
		MSG_HELP,
	};

	void Help(const std::string& info) {
		HelpData* data = new HelpData;
		data->info_ = info;
		talk_base::Thread::Current()->Post(this, MSG_HELP, data);
	}

	virtual void OnMessage(talk_base::Message* msg) {
		switch (msg->message_id) {
		case MSG_HELP:
			HelpData* data = (HelpData*)msg->pdata;
			std::cout << "MSG_HELP : " << data->info_ << std::endl;
			break;
		}
	}
};



#endif